<#include "../common/_layout.html" />
<@head title="乡镇名称管理编辑">
<style type="text/css">
	.cll {
		background-color: #ddd;
	}
</style>
</@head>
<@layout menu='/towns'>
<section class="content-header">
	<h1>
		${pageTitleBread.department!pageTitleBread.default!}
	</h1>
	<ol class="breadcrumb">
		<li><a href="javascript:void(0);" onclick="location.href='${ctx}${pageTitleBread.breadHomeMethod!}'">首页</a></li>
		<li><a href="javascript:void(0);" onclick="location.href='${ctx}${pageTitleBread.url!}'">${pageTitleBread.pageTitle!}</a></li>
		<li class="active">${pageTitleBread.nowBread!}</li>
	</ol>
</section>
<section class="content">
	<div class="row">
		<div class="col-xs-12">
			<div class="box">
				<form action="${ctx}/towns/save" method="post" role="form">
					<legend>添加/修改信息</legend>
					<input type="hidden" name="id" id="id" value="${towns.id!}">
					
					<div class="form-group">
						<label for="pid">父节点编号</label>
						<input type="text" class="form-control" id="pid" name="pid" placeholder="父节点编号" value="${towns.pid!1}">
					</div>
					<div class="form-group">
						<label for="name">名称</label>
						<input type="text" class="form-control" id="name" name="name" placeholder="名称" value="${towns.name!}">
					</div>
					<div class="form-group">
						<label for="linkman">联系人</label>
						<input type="text" class="form-control" id="linkman" name="linkman" placeholder="联系人" value="${towns.linkman!}">
					</div>
					<div class="form-group">
						<label for="phone">联系方式</label>
						<input type="text" class="form-control" id="phone" name="phone" placeholder="联系方式" value="${towns.phone!}">
					</div>
					<button type="submit" class="btn btn-primary">保存</button><button type="submit" class="btn btn-cancle" onclick="javascript :history.back(-1);">返回</button>
				</form>
			</div>
		</div>
	</div>
</section>
</@layout>
<@scripts>
<script type="text/javascript">
	$(document).ready(function(){

	});
</script>
</@scripts>